package partial;

public class StivaAX {

    NodX id[] = new NodX[100];
    int idx = 0;

    public void push(NodX x) {
        id[idx] = x;
        idx++;
    }

    public NodX pop() {
        NodX v = id[idx - 1];
        idx--;
        return v;
    }

    public boolean isEmpty() {
        if (idx == 0) {
            return true;
        } else {
            return false;
        }
    }

}
